#pragma once

#include<iostream>
#include<time.h>
#include<string>

#define INFO 1
#define WARNING 2
#define ERROR 3
#define FATAL 4

#define LOG(level,message) Log(#level,message,__FILE__,__LINE__)

void Log(const std::string&level,const std::string&message,const std::string&file_name,const int&line)
{
    std::cout<<"["<<level<<"]"<<"["<<time(nullptr)<<"]"<<"["<<message<<"]"<<"["<< file_name<<"]"<<"["<<line<<"]"<<std::endl;
}